'use stritc'

const port=8080;
const koa=require('koa');
const bodyparser=require('koa-bodyparser');
const cors=require('koa-cors');
const { sync }=require('./model')
const router=require('./router')


const app=new koa();

app.use(cors());
app.use(bodyparser());
app.use(router());

// sync();


app.listen(port,()=>{
    console.log('http://localhost:8080');
})